package daa.levelup.UnitFactory;


public class Archer extends Unit {
    private int arrows = 10;

    public Archer(int health, int armor, String name, int attackCount, String weapon) {
        super(health, armor, name, attackCount, weapon);
        this.arrows = getAttackCount();

    }


    @Override
    public void level() {
        this.setHealth(10);
        this.setArmor(12);
    }


    @Override
    public String toString() {
        return "Archer{" +
                "arrows=" + arrows +
                '}';
    }
}
